<!DOCTYPE html>
<html>
<head>
    <title>界面组件维护</title>
    <script>
        var pageConfig = {
            jss: ["pc/system/cmp"]
        };
        var p = {
            permission0: "${shiro.hasPermission('sys:cmp:update')}",
            permission1: "${shiro.hasPermission('sys:cmp:delete')}"
        };
    </script>
    @@include("/pc/common/_head.html"){}@@
</head>
<body>

<div id="page">
    @@include("/pc/common/_search2TableConfig.html"){}@@
    <el-main>
        <el-col :xs="24" :sm="6" :md="6" :lg="5" :xl="5">
            <h2 class="tree-title">功能模块树：</h2>
            <el-tree :data="treeData" :props="defaultProps"
                     @node-click="handleNodeClick"
                     node-key="id"
                     :default-expanded-keys="['1608211848140001']"
            ></el-tree>
        </el-col>
        <el-col :xs="24" :sm="18" :md="18" :lg="19" :xl="19">
            @@include("/pc/common/_search2Table.html"){}@@
            <el-row>
                <table id="cmp_table"
                       class="layui-table"
                       lay-filter="cmp_table">
                </table>
            </el-row>
        </el-col>
    </el-main>
</div>

<script type="text/html" id="table-toolbar">
    @@include("/pc/common/_buttons_table_head.html",{btns:[{id:'add',permission:'sys:cmp:add'},{id:'init',permission:'sys:cmp:initUi'}]}){}@@
</script>
<script type="text/html" id="script-cmpsetting">
    <div lay-event="detail" class="layui-icon layadmin-tabs-control layui-icon layui-icon-edit">

    </div>
</script>
<script type="text/html" id="script-cmpsetting-action">
    <ul class="layui-table-col-tool">
        {{#  if(p.permission0 =='true'){ }}
        <li inx="0">
            <a href="javascript:;">编辑</a>
        </li>
        {{#  } }}
        {{#  if(p.permission1 =='true'){ }}
        <li inx="1">
            <a href="javascript:;">删除</a>
        </li>
        {{#  } }}
    </ul>
</script>
</body>
</html>